module nehe.Lesson01;

import nehe.Lesson;
import nehe.Window;

import derelict.opengl.gl;

void main()
{
	//Create a scoped lesson instance
	scope Lesson lesson = new Lesson01();

	lesson.init();

	lesson.run();
}

public class Lesson01 : Lesson
{
	public override void init()
	{
		window.create(800, 600, 32, "Ne(w)He Lesson 1 - The first OpenGL window");
		glClearColor(0.0, 0.0, 0.0, 0.0);
	}

	protected override void draw()
	{
		glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
		glLoadIdentity();
	}
}
